package com.bidevalution.business.service;

import com.bidevalution.dao.entity.BeSectionReappraisalRecord;
import com.bidevalution.dao.entity.BeSectionStep;

/**
 * @description: 评标标段重评记录接口
 * @author: xiayf
 * @date: 2019-10-08 13:17
 */
public interface BeSectionReappraisalRecordService {

    /**
     * 保存重评记录
     *
     * @param beSectionStep
     * @param submitCode
     * @param submitType
     * @param userId
     * @throws Exception
     */
    void saveReappraisalRecord(BeSectionStep beSectionStep, String submitCode, String submitType, String userId) throws Exception;

    /**
     * 查询重评替补发起记录
     *
     * @param record
     * @return
     */
    BeSectionReappraisalRecord queryRecordByObject(BeSectionReappraisalRecord record) throws Exception;

    /**
     * 更新替补或重评发起成功状态
     *
     * @param sectionId
     * @param submitCode
     * @param submitType
     * @param sectionStepId
     * @throws Exception
     */
    void updateRecordByObject(String sectionId, String submitCode, String submitType, String sectionStepId) throws Exception;

    /**
     * 删除重评记录
     *
     * @param record
     * @return
     */
    int deleteRecordByObject(BeSectionReappraisalRecord record);
    void updateRecordByObject(String sectionId, String submitCode, String submitType, BeSectionStep currStep,BeSectionStep preStep) throws Exception;

}
